<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<style>
			#d1{
				font-size: 30px;
				color: white;
				background: blue;
				text-align: center;
			}
		</style>
	</head>
	<body>
		<div id="d1"></div>
		<script>
		function showTime(){
			var now = new Date();
			var y = now.getFullYear();
			var m = now.getMonth()+1;
			var d = now.getDate();
			var h = now.getHours();
			h = h < 10 ? "0" + h:h;
			var f = now.getMinutes();
			f = f < 10 ? "0" + f:f;
			var s = now.getSeconds();
			s = s < 10 ? "0" + s:s;
			var w = now.getDay();
			var weeks = ["日","一","二","三","四","五","六"];
			d1.innerHTML = y + "年" + m + "月" + d + "日 + "星期" + weeks[w];
		}
		showTime();
		setInterval(showTime,1000);
		</script>
	</body>
</html>
